package com.easydemo.easy.domain;

import com.easydemo.easy.vo.AppUserExcelVO;
import lombok.Data;

/**
 * @author :ZhengHao
 * @version :1.0
 * @since :2024-12-27  20:09
 */
@Data
public class AppUser {
    private Integer id;
    private String name;
    private String email;
    private String phone;
    private short gender;
    private String password;
    private short age;

    public AppUserExcelVO toExcelModel() {
        AppUserExcelVO excelModel = new AppUserExcelVO();
        excelModel.setName(this.name);
        excelModel.setPhone(this.phone);
        excelModel.setEmail(this.email);
        excelModel.setGender(this.gender);
        excelModel.setAge(this.age);
        // 设置其他需要的字段...
        return excelModel;
    }

}
